<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("UTF-8");
	String htmlData = request.getParameter("content") != null ? request
			.getParameter("content") : "";
%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>添加优惠劵</title>
		<link rel="stylesheet" type="text/css" href="css/index.css" />
		<style>
form {
	margin: 0;
}

textarea {
	display: block;
}
</style>
		<link rel="stylesheet" type="text/css" href="css/index.css" />
		<link rel="stylesheet" href="themes/default/default.css"
			type="text/css" />
		<script charset="utf-8" src="js/jquery.js"></script>
		<script src="js/kindeditor.js"></script>
		<script charset="utf-8" src="js/zh_CN.js"></script>
		<script type="text/javascript">
		KindEditor.ready(function(K) {
			
				var editor = K.editor({
					allowFileManager : true,
					uploadJson : 'upload.action',
					fileManagerJson : 'jsp/file_manager_json.jsp'
				});
				var editor1 = K.create('textarea[name="card.cardSummaryContent"]', {
				cssPath : 'js/plugins/code/prettify.css',
				items : [
						 'bold', 'italic', 'underline',
						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright']
				});
				K('#image3').click(function() {
					editor.loadPlugin('image', function() {
						editor.plugin.imageDialog({
							showRemote : false,
							imageUrl : K('#url3').val(),
							clickFn : function(url, title, width, height, border, align) {
								K('#url3').val(url);
								editor.hideDialog();
								$("#imgs").attr("src",url);
							}
						});
					});
				});
			});
</script>

	</head>
	<body style="overflow-y: auto;">
		<input type="hidden" value="<%=htmlData%>">
		<form action="doVip!savecard.action" method="post">
			<table class="form-table" cellspacing="0" cellpadding="0">
				<colgroup>
					<col style="width: 17%" />
					<col style="width: 83%" />
				</colgroup>
				<tr>
					<td class="bt-xx" colspan="2">
						<img src="images/titlebar_icon.gif" />
						&nbsp;添加优惠劵
					</td>
				</tr>
				<tr>
					<td colspan="2"></td>
				</tr>
				<tr>
					<th>
						商家ID：
					</th>
					<td>
						<input type="text" class="inputstyle" name="card.bsId" />
					</td>
				</tr>
				<tr>
					<th>
						会员卡名称：
					</th>
					<td>
						<input type="text" class="inputstyle" name="card.cardName" />
					</td>
				</tr>
				<tr>
					<th>
						商家优惠类型： 
					</th>
					<td>
						<input type="text" class="inputstyle" name="card.cardType" />卡片类型：0会员卡 1优惠卷 2 超市卡 3免费
					</td>
				</tr>
				
				<tr>
					<th>
						优惠详情： 
					</th>
					<td>
						<input type="text" class="inputstyle" name="card.cardSummary" />(如:会员享受8.8折)
					</td>
				</tr>
				
				<tr>
					<th>
						商区： 
					</th>
					<td>
						<input type="text" class="inputstyle" name="card.cardAddress" />
					</td>
				</tr>
				<tr>
					<th>
						类型： 
					</th>
					<td>
						<input type="text" class="inputstyle" name="card.cardTaste" />(饮食，生活)
					</td>
				</tr>
				
				<tr>
					<th>
						折扣： 
					</th>
					<td>
						<input type="text" class="inputstyle" name="card.cardSaleCode" />(会员享受0.9)
					</td>
				</tr>
				<tr>
					<th>
						地区： 
					</th>
					<td>
						<input type="text" class="inputstyle" name="card.cardZone" />(现在茂名是 0688 为区号)
					</td>
				</tr>
				<tr>
					<th>
						特别提示：
					</th>
					<td>
						<textarea cols="100" rows="8"
							style="width: 700px; height: 100px; visibility: hidden;"
							name="card.cardSummaryContent"></textarea>
					</td>
				</tr>
				<tr>
					<th>
						下载次数：
					</th>
					<td>
						<input type="text" class="inputstyle" name="card.cardDownLoadCount" />
					</td>
				</tr>
				<tr>
					<th></th>
					<td>
						<input type="submit" class="buttonstyle" value="保存" />
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>